#include "shangjia.h"
#include "ui_shangjia.h"
#include "shangjiajm.h"

shangjia::shangjia(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::shangjia)
{
    ui->setupUi(this);
}

shangjia::~shangjia()
{
    delete ui;
}

void shangjia::on_pushButton_clicked()
{
    QString name = ui->lineEdit->text();
    QString password = ui->lineEdit_2->text();
    if(name == "llb"&&password == "88888888"){
        shangjiajm * jm = new shangjiajm;
        jm->show();
        this->close();
    }
    else{
        QMessageBox::information(this,"登录认证","登录失败,账户或者密码错误");
    }
}

